package com.spring.mapper;

import com.spring.model.UserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserMapper {
    /**
     * 定义接口方法
     * */
    @Select("select * from usertb")
    public List<UserInfo> getAllUsers();
}